/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.src.ptit.javatraining.huynh.btvn1;

import java.util.Scanner;

/**
 *
 * @author user
 */
public class Baitap4 extends Baitap1 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n;
        try{
        n = sc.nextLong();
        long dem = 0, m = 1;
        if (n >= 1) {
            System.out.print(2);
            dem++;
        }
        while (dem <n) {
            if (isPrime(m) == true) {
                System.out.print(" " + m);
                dem++;
            }
            m = m + 2;
        }
    }
        catch(Exception e){
            System.out.println("Moi nhap lai !");
        }
    }
}
